#pragma once
#include "../bytearray.h"
#include "../gus2_config.h"
#if GUS2_ENABLE_ATTRI
#define CTRL_TYPE_SYS_RTC sys_rtc
typedef struct {
	unsigned char Datetime;
	unsigned char Date;
	unsigned char Time;
	unsigned char Year;
	unsigned char Mon;
	unsigned char Day;
	unsigned char Hour;
	unsigned char Min;
	unsigned char Sec;
}__gui_attr_sys_rtc;

extern const __gui_attr_sys_rtc CTRL_TYPE_SYS_ATTR;
#endif 

void gui_sys_rtc_set_datetime(bytearray_t* ba,
	unsigned char year, unsigned char mon, unsigned char day,
	unsigned char hour, unsigned char min, unsigned char sec);
void gui_sys_rtc_set_date(bytearray_t* ba, unsigned char year, unsigned char mon, unsigned char day);
void gui_sys_rtc_set_time(bytearray_t* ba, unsigned char hour, unsigned char min, unsigned char sec);
void gui_sys_rtc_set_year(bytearray_t* ba, unsigned char year);
void gui_sys_rtc_set_mon(bytearray_t* ba, unsigned char mon);
void gui_sys_rtc_set_day(bytearray_t* ba, unsigned char day);
void gui_sys_rtc_set_hour(bytearray_t* ba, unsigned char hour);
void gui_sys_rtc_set_min(bytearray_t* ba, unsigned char min);
void gui_sys_rtc_set_sec(bytearray_t* ba, unsigned char sec);

